package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentServiceBillingItemsMapper;
import com.ruoyi.system.domain.EquipmentServiceBillingItems;
import com.ruoyi.system.service.IEquipmentServiceBillingItemsService;

/**
 * 设备服务计费项Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class EquipmentServiceBillingItemsServiceImpl implements IEquipmentServiceBillingItemsService
{
    @Autowired
    private EquipmentServiceBillingItemsMapper equipmentServiceBillingItemsMapper;

    /**
     * 通过id查询设备服务计费项
     *
     * @param id 设备服务计费项主键
     * @return 设备服务计费项
     */
    @Override
    public EquipmentServiceBillingItems selectEquipmentServiceBillingItemsById(Long id)
    {
        return equipmentServiceBillingItemsMapper.selectEquipmentServiceBillingItemsById(id);
    }

    /**
     * 查询设备服务计费项列表
     *
     * @param equipmentServiceBillingItems 设备服务计费项
     * @return 设备服务计费项
     */
    @Override
    public List<EquipmentServiceBillingItems> selectEquipmentServiceBillingItemsList(EquipmentServiceBillingItems equipmentServiceBillingItems)
    {
        return equipmentServiceBillingItemsMapper.selectEquipmentServiceBillingItemsList(equipmentServiceBillingItems);
    }

    /**
     * 新增设备服务计费项
     *
     * @param equipmentServiceBillingItems 设备服务计费项
     * @return 结果
     */
    @Override
    public int insertEquipmentServiceBillingItems(EquipmentServiceBillingItems equipmentServiceBillingItems)
    {
        return equipmentServiceBillingItemsMapper.insertEquipmentServiceBillingItems(equipmentServiceBillingItems);
    }

    /**
     * 修改设备服务计费项
     *
     * @param equipmentServiceBillingItems 设备服务计费项
     * @return 结果
     */
    @Override
    public int updateEquipmentServiceBillingItems(EquipmentServiceBillingItems equipmentServiceBillingItems)
    {
        return equipmentServiceBillingItemsMapper.updateEquipmentServiceBillingItems(equipmentServiceBillingItems);
    }

    /**
     * 通过id批量删除设备服务计费项信息
     *
     * @param ids 需要删除的设备服务计费项主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingItemsByIds(Long[] ids)
    {
        return equipmentServiceBillingItemsMapper.deleteEquipmentServiceBillingItemsByIds(ids);
    }

    /**
     * 通过id删除设备服务计费项信息
     *
     * @param id 设备服务计费项主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingItemsById(Long id)
    {
        return equipmentServiceBillingItemsMapper.deleteEquipmentServiceBillingItemsById(id);
    }
}
